package main

import (
	"fmt"
	"joewt.com/filestore-server/handler"
	"net/http"
)

func main() {

	http.HandleFunc("/file/upload",handler.UploadHandler)
	http.HandleFunc("/file/upload/success",handler.UploadSucHandler)
	http.HandleFunc("/file/meta",handler.GetFileMetaHandler)
	http.HandleFunc("/file/query",handler.FileQueryHandler)
	http.HandleFunc("/file/download",handler.DownloadHandler)
	err := http.ListenAndServe(":8080", nil)
	if err != nil {
		fmt.Println("error")
		panic("error")
	}

}
